﻿@model internal_website.Models.CompositionGenre
@using internal_website.Views.Resources

<fieldset>
    <legend>@ViewString.Composer__Details_Title</legend>
    <form>
        @Html.AntiForgeryToken()
        @Html.HiddenFor(model => model.Id)

        @{
            var cssClassDetails = "";

            switch (Model.Active)
            {
                case true:
                    cssClassDetails = "alert alert-info";
                    break;
                case false:
                    cssClassDetails = "alert alert-block";
                    break;
            } 
        }

        <div class="@cssClassDetails">
            <div class="control-group">
                @Html.LabelFor(model => model.Name, new { @class ="control-label"})
                <div class="controls">
                    @Html.DisplayFor(model => model.Name, new {  @class="input-xlarge" })
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(model => model.Description, new { @class ="control-label"})
                <div class="controls">
                    @Html.DisplayFor(model => model.Description, new {  @class="input-xlarge" })
                </div>
            </div>
    
        </div>

        <div class="control-group"> 
            <div class="controls pull-right">
                <button type="button" class="btn btn-danger btnDelete">@ViewString.Composer__Details_btnDelete_html</button>
                <button type="button" class="btn btn-success btnDone">@ViewString.Composer__Details_btnDone_html</button>
            </div>
        </div>

    </form>
</fieldset>